<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>AnimatorController2D | ts</title>
	<meta name="description" content="Documentation for ts">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header>
	<div class="tsd-page-toolbar">
		<div class="container">
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
					<a href="../index.html" class="title">ts</a>
				</div>
				<div class="table-cell" id="tsd-widgets">
					<div id="tsd-filter">
						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
						<div class="tsd-filter-group">
							<div class="tsd-select" id="tsd-filter-visibility">
								<span class="tsd-select-label">All</span>
								<ul class="tsd-select-list">
									<li data-value="public">Public</li>
									<li data-value="protected">Public/Protected</li>
									<li data-value="private" class="selected">All</li>
								</ul>
							</div>
							<input type="checkbox" id="tsd-filter-inherited" checked />
							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
							<input type="checkbox" id="tsd-filter-externals" checked />
							<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
							<input type="checkbox" id="tsd-filter-only-exported" />
							<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
						</div>
					</div>
					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="../globals.html">Globals</a>
				</li>
				<li>
					<a href="../modules/_laya_components_animatorcontroller2d_.html">&quot;laya/components/AnimatorController2D&quot;</a>
				</li>
				<li>
					<a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html">AnimatorController2D</a>
				</li>
			</ul>
			<h1>Class AnimatorController2D</h1>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<section class="tsd-panel tsd-comment">
				<div class="tsd-comment tsd-typography">
					<div class="lead">
						<p><code>2D动画控制器<code/></p>

                </div>
        </div>
        </section>


    <section class="tsd-panel tsd-hierarchy">
        <h3>Hierarchy</h3>
        <ul class="tsd-hierarchy">
        <li>
                <a href="_laya_resource_resource_.resource.html" class="tsd-signature-type">Resource</a>

                    <ul class="tsd-hierarchy">
        <li>
                <span class="target">AnimatorController2D</span>

        </li>
</ul>
        </li>
</ul>

    </section>





        <section class="tsd-panel-group tsd-index-group">
        <h2>Index</h2>
        <section class="tsd-panel tsd-index-panel">
            <div class="tsd-index-content">
                    <section class="tsd-index-section ">
                            <h3>Constructors</h3>
                            <ul class="tsd-index-list">
                                    <li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#constructor" class="tsd-kind-icon">constructor</a></li>
                            </ul>
                    </section>
                    <section class="tsd-index-section tsd-is-inherited">
                            <h3>Properties</h3>
                            <ul class="tsd-index-list">
                                    <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#destoryedimmediately" class="tsd-kind-icon">destoryed<wbr>Immediately</a></li>
                                    <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#lock" class="tsd-kind-icon">lock</a></li>
                                    <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#name" class="tsd-kind-icon">name</a></li>
                                    <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#url" class="tsd-kind-icon">url</a></li>
                                    <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#uuid" class="tsd-kind-icon">uuid</a></li>
                                    <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#debug" class="tsd-kind-icon">DEBUG</a></li>
                            </ul>
                    </section>
                    <section class="tsd-index-section tsd-is-inherited">
                            <h3>Accessors</h3>
                            <ul class="tsd-index-list">
                                    <li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#cpumemory" class="tsd-kind-icon">cpu<wbr>Memory</a></li>
                                    <li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#destroyed" class="tsd-kind-icon">destroyed</a></li>
                                    <li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#gpumemory" class="tsd-kind-icon">gpu<wbr>Memory</a></li>
                                    <li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#id" class="tsd-kind-icon">id</a></li>
                                    <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#obsolute" class="tsd-kind-icon">obsolute</a></li>
                                    <li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#referencecount" class="tsd-kind-icon">reference<wbr>Count</a></li>
                                    <li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited tsd-is-static"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#cpumemory-1" class="tsd-kind-icon">cpu<wbr>Memory</a></li>
                                    <li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited tsd-is-static"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#gpumemory-1" class="tsd-kind-icon">gpu<wbr>Memory</a></li>
                            </ul>
                    </section>
                    <section class="tsd-index-section tsd-is-inherited">
                            <h3>Methods</h3>
                            <ul class="tsd-index-list">
                                    <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#_clearreference" class="tsd-kind-icon">_clear<wbr>Reference</a></li>
                                    <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#destroy" class="tsd-kind-icon">destroy</a></li>
                                    <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#event" class="tsd-kind-icon">event</a></li>
                                    <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#haslistener" class="tsd-kind-icon">has<wbr>Listener</a></li>
                                    <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#iscreatefromurl" class="tsd-kind-icon">is<wbr>Create<wbr>FromURL</a></li>
                                    <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#off" class="tsd-kind-icon">off</a></li>
                                    <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#offall" class="tsd-kind-icon">off<wbr>All</a></li>
                                    <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#offallcaller" class="tsd-kind-icon">off<wbr>All<wbr>Caller</a></li>
                                    <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#on" class="tsd-kind-icon">on</a></li>
                                    <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#once" class="tsd-kind-icon">once</a></li>
                                    <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static"><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#destroyunusedresources" class="tsd-kind-icon">destroy<wbr>Unused<wbr>Resources</a></li>
                            </ul>
                    </section>
            </div>
        </section>
    </section>
                    <section class="tsd-panel-group tsd-member-group ">
        <h2>Constructors</h2>
                <section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite">
    <a name="constructor" class="tsd-anchor"></a>
        <h3>constructor</h3>

        <ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite">
        <li class="tsd-signature tsd-kind-icon">new <wbr>Animator<wbr>Controller2D<span class="tsd-signature-symbol">(</span>data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html" class="tsd-signature-type">AnimatorController2D</a></li>
</ul>

<ul class="tsd-descriptions">
        <li class="tsd-description">
                <aside class="tsd-sources">
        <p>Overrides Resource.__constructor</p>
        <ul>
                    <li>Defined in laya/components/AnimatorController2D.ts:23</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>实例化2D动画控制器</p>

                </div>
        </div>


    <h4 class="tsd-parameters-title">Parameters</h4>
    <ul class="tsd-parameters">
            <li>
                <h5>data: <span class="tsd-signature-type">any</span></h5>

                        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    
                </div>
        </div>

            </li>
    </ul>

    <h4 class="tsd-returns-title">Returns <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html" class="tsd-signature-type">AnimatorController2D</a></h4>


        </li>
</ul>
    

</section>
    </section>
                <section class="tsd-panel-group tsd-member-group tsd-is-inherited">
        <h2>Properties</h2>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
    <a name="destoryedimmediately" class="tsd-anchor"></a>
        <h3>destoryed<wbr>Immediately</h3>

        <div class="tsd-signature tsd-kind-icon">destoryed<wbr>Immediately<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>

<aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#destoryedimmediately">destoryedImmediately</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:104</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>是否在引用计数为0的时候立马删除他</p>

                </div>
        </div>


    

</section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
    <a name="lock" class="tsd-anchor"></a>
        <h3><span class="tsd-flag ts-flagOptional">Optional</span> lock</h3>

        <div class="tsd-signature tsd-kind-icon">lock<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>

<aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#lock">lock</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:95</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>是否加锁，如果true为不能使用自动释放机制。</p>

                </div>
        </div>


    

</section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
    <a name="name" class="tsd-anchor"></a>
        <h3><span class="tsd-flag ts-flagOptional">Optional</span> name</h3>

        <div class="tsd-signature tsd-kind-icon">name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>

<aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#name">name</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:97</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>名称。</p>

                </div>
        </div>


    

</section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
    <a name="url" class="tsd-anchor"></a>
        <h3>url</h3>

        <div class="tsd-signature tsd-kind-icon">url<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>

<aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#url">url</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:99</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>获取资源的URL地址。</p>

                </div>
        </div>


    

</section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
    <a name="uuid" class="tsd-anchor"></a>
        <h3>uuid</h3>

        <div class="tsd-signature tsd-kind-icon">uuid<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>

<aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#uuid">uuid</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:101</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>获取资源的UUID。</p>

                </div>
        </div>


    

</section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static">
    <a name="debug" class="tsd-anchor"></a>
        <h3><span class="tsd-flag ts-flagStatic">Static</span> DEBUG</h3>

        <div class="tsd-signature tsd-kind-icon">DEBUG<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div>

<aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#debug">DEBUG</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:18</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>是否开启debug模式</p>

                </div>
        </div>


    

</section>
    </section>
                <section class="tsd-panel-group tsd-member-group tsd-is-inherited">
        <h2>Accessors</h2>
                <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
    <a name="cpumemory" class="tsd-anchor"></a>
        <h3>cpu<wbr>Memory</h3>


        <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
            <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> cpuMemory<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>

<ul class="tsd-descriptions">
            <li class="tsd-description">
                    <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#cpumemory-1">cpuMemory</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:116</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>内存大小。</p>

                </div>
        </div>



    <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>


            </li>
</ul>
    

</section>
                <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
    <a name="destroyed" class="tsd-anchor"></a>
        <h3>destroyed</h3>


        <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
            <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> destroyed<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>

<ul class="tsd-descriptions">
            <li class="tsd-description">
                    <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#destroyed">destroyed</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:130</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>是否已销毁。</p>

                </div>
        </div>



    <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>


            </li>
</ul>
    

</section>
                <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
    <a name="gpumemory" class="tsd-anchor"></a>
        <h3>gpu<wbr>Memory</h3>


        <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
            <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> gpuMemory<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>

<ul class="tsd-descriptions">
            <li class="tsd-description">
                    <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#gpumemory-1">gpuMemory</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:123</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>显存大小。</p>

                </div>
        </div>



    <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>


            </li>
</ul>
    

</section>
                <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
    <a name="id" class="tsd-anchor"></a>
        <h3>id</h3>


        <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
            <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> id<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>

<ul class="tsd-descriptions">
            <li class="tsd-description">
                    <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#id">id</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:109</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>获取唯一标识ID,通常用于识别。</p>

                </div>
        </div>



    <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>


            </li>
</ul>
    

</section>
                <section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited">
    <a name="obsolute" class="tsd-anchor"></a>
        <h3>obsolute</h3>


        <ul class="tsd-signatures tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited">
            <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> obsolute<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
            <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">set</span> obsolute<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>

<ul class="tsd-descriptions">
            <li class="tsd-description">
                    <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#obsolute">obsolute</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:139</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>如果设置一个已缓存的资源obsolute为true，则
1）getRes仍然可以返回这个资源；
2）下次加载时会忽略这个缓存而去重新加载。。</p>

                </div>
        </div>



    <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>


            </li>
            <li class="tsd-description">
                    <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#obsolute">obsolute</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:143</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>如果设置一个已缓存的资源obsolute为true，则
1）getRes仍然可以返回这个资源；
2）下次加载时会忽略这个缓存而去重新加载。。</p>

                </div>
        </div>


    <h4 class="tsd-parameters-title">Parameters</h4>
    <ul class="tsd-parameters">
            <li>
                <h5>value: <span class="tsd-signature-type">boolean</span></h5>

                
            </li>
    </ul>

    <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>


            </li>
</ul>
    

</section>
                <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
    <a name="referencecount" class="tsd-anchor"></a>
        <h3>reference<wbr>Count</h3>


        <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
            <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> referenceCount<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>

<ul class="tsd-descriptions">
            <li class="tsd-description">
                    <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#referencecount">referenceCount</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:150</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>获取资源的引用计数。</p>

                </div>
        </div>



    <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>


            </li>
</ul>
    

</section>
                <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited tsd-is-static">
    <a name="cpumemory-1" class="tsd-anchor"></a>
        <h3><span class="tsd-flag ts-flagStatic">Static</span> cpu<wbr>Memory</h3>


        <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited tsd-is-static">
            <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> cpuMemory<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>

<ul class="tsd-descriptions">
            <li class="tsd-description">
                    <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#cpumemory-1">cpuMemory</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:23</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>当前内存，以字节为单位。</p>

                </div>
        </div>



    <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>


            </li>
</ul>
    

</section>
                <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited tsd-is-static">
    <a name="gpumemory-1" class="tsd-anchor"></a>
        <h3><span class="tsd-flag ts-flagStatic">Static</span> gpu<wbr>Memory</h3>


        <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited tsd-is-static">
            <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> gpuMemory<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>

<ul class="tsd-descriptions">
            <li class="tsd-description">
                    <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#gpumemory-1">gpuMemory</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:30</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>当前显存，以字节为单位。</p>

                </div>
        </div>



    <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>


            </li>
</ul>
    

</section>
    </section>
                <section class="tsd-panel-group tsd-member-group tsd-is-inherited">
        <h2>Methods</h2>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a name="_clearreference" class="tsd-anchor"></a>
        <h3>_clear<wbr>Reference</h3>

        <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
        <li class="tsd-signature tsd-kind-icon">_clear<wbr>Reference<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>

<ul class="tsd-descriptions">
        <li class="tsd-description">
                <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#_clearreference">_clearReference</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:228</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>清除引用</p>

                </div>
        </div>



    <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>


        </li>
</ul>
    

</section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a name="destroy" class="tsd-anchor"></a>
        <h3>destroy</h3>

        <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
        <li class="tsd-signature tsd-kind-icon">destroy<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>

<ul class="tsd-descriptions">
        <li class="tsd-description">
                <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#destroy">destroy</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:254</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>销毁资源,销毁后资源不能恢复。</p>

                </div>
        </div>



    <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>


        </li>
</ul>
    

</section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a name="event" class="tsd-anchor"></a>
        <h3>event</h3>

        <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
        <li class="tsd-signature tsd-kind-icon">event<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, data<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>

<ul class="tsd-descriptions">
        <li class="tsd-description">
                <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_events_eventdispatcher_.eventdispatcher.html">EventDispatcher</a>.<a href="_laya_events_eventdispatcher_.eventdispatcher.html#event">event</a></p>
        <ul>
                    <li>Defined in laya/events/EventDispatcher.ts:32</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>派发事件。</p>

                </div>
        </div>


    <h4 class="tsd-parameters-title">Parameters</h4>
    <ul class="tsd-parameters">
            <li>
                <h5>type: <span class="tsd-signature-type">string</span></h5>

                        <div class="tsd-comment tsd-typography">
                <p>事件类型。</p>

        </div>

            </li>
            <li>
                <h5><span class="tsd-flag ts-flagOptional">Optional</span> data: <span class="tsd-signature-type">any</span></h5>

                        <div class="tsd-comment tsd-typography">
                <p>（可选）回调数据。<b>注意：</b>如果是需要传递多个参数 p1,p2,p3,...可以使用数组结构如：[p1,p2,p3,...] ；如果需要回调单个参数 p ，且 p 是一个数组，则需要使用结构如：[p]，其他的单个参数 p ，可以直接传入参数 p。</p>

        </div>

            </li>
    </ul>

    <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>

        <p>此事件类型是否有侦听者，如果有侦听者则值为 true，否则值为 false。</p>


        </li>
</ul>
    

</section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a name="haslistener" class="tsd-anchor"></a>
        <h3>has<wbr>Listener</h3>

        <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
        <li class="tsd-signature tsd-kind-icon">has<wbr>Listener<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>

<ul class="tsd-descriptions">
        <li class="tsd-description">
                <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_events_eventdispatcher_.eventdispatcher.html">EventDispatcher</a>.<a href="_laya_events_eventdispatcher_.eventdispatcher.html#haslistener">hasListener</a></p>
        <ul>
                    <li>Defined in laya/events/EventDispatcher.ts:21</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。</p>

                </div>
        </div>


    <h4 class="tsd-parameters-title">Parameters</h4>
    <ul class="tsd-parameters">
            <li>
                <h5>type: <span class="tsd-signature-type">string</span></h5>

                        <div class="tsd-comment tsd-typography">
                <p>事件的类型。</p>

        </div>

            </li>
    </ul>

    <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>

        <p>如果指定类型的侦听器已注册，则值为 true；否则，值为 false。</p>


        </li>
</ul>
    

</section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a name="iscreatefromurl" class="tsd-anchor"></a>
        <h3>is<wbr>Create<wbr>FromURL</h3>

        <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
        <li class="tsd-signature tsd-kind-icon">is<wbr>Create<wbr>FromURL<span class="tsd-signature-symbol">(</span>url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>

<ul class="tsd-descriptions">
        <li class="tsd-description">
                <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#iscreatefromurl">isCreateFromURL</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:202</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>返回资源是否从指定url创建</p>

                </div>
        </div>


    <h4 class="tsd-parameters-title">Parameters</h4>
    <ul class="tsd-parameters">
            <li>
                <h5>url: <span class="tsd-signature-type">string</span></h5>

                
            </li>
    </ul>

    <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>


        </li>
</ul>
    

</section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a name="off" class="tsd-anchor"></a>
        <h3>off</h3>

        <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
        <li class="tsd-signature tsd-kind-icon">off<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_laya_events_eventdispatcher_.eventdispatcher.html" class="tsd-signature-type">EventDispatcher</a></li>
        <li class="tsd-signature tsd-kind-icon">off<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, caller<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, listener<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Function</span>, args<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_laya_events_eventdispatcher_.eventdispatcher.html" class="tsd-signature-type">EventDispatcher</a></li>
</ul>

<ul class="tsd-descriptions">
        <li class="tsd-description">
                <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_events_eventdispatcher_.eventdispatcher.html">EventDispatcher</a>.<a href="_laya_events_eventdispatcher_.eventdispatcher.html#off">off</a></p>
        <ul>
                    <li>Defined in laya/events/EventDispatcher.ts:112</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>从 EventDispatcher 对象中删除侦听器。</p>

                </div>
        </div>


    <h4 class="tsd-parameters-title">Parameters</h4>
    <ul class="tsd-parameters">
            <li>
                <h5>type: <span class="tsd-signature-type">string</span></h5>

                        <div class="tsd-comment tsd-typography">
                <p>事件的类型。</p>

        </div>

            </li>
            <li>
                <h5>listener: <span class="tsd-signature-type">Function</span></h5>

                        <div class="tsd-comment tsd-typography">
                <p>事件侦听函数。</p>

        </div>

            </li>
    </ul>

    <h4 class="tsd-returns-title">Returns <a href="_laya_events_eventdispatcher_.eventdispatcher.html" class="tsd-signature-type">EventDispatcher</a></h4>

        <p>此 EventDispatcher 对象。</p>


        </li>
        <li class="tsd-description">
                <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_events_eventdispatcher_.eventdispatcher.html">EventDispatcher</a>.<a href="_laya_events_eventdispatcher_.eventdispatcher.html#off">off</a></p>
        <ul>
                    <li>Defined in laya/events/EventDispatcher.ts:113</li>
        </ul>
</aside>


    <h4 class="tsd-parameters-title">Parameters</h4>
    <ul class="tsd-parameters">
            <li>
                <h5>type: <span class="tsd-signature-type">string</span></h5>

                
            </li>
            <li>
                <h5>caller: <span class="tsd-signature-type">any</span></h5>

                
            </li>
            <li>
                <h5><span class="tsd-flag ts-flagOptional">Optional</span> listener: <span class="tsd-signature-type">Function</span></h5>

                
            </li>
            <li>
                <h5><span class="tsd-flag ts-flagOptional">Optional</span> args: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></h5>

                
            </li>
    </ul>

    <h4 class="tsd-returns-title">Returns <a href="_laya_events_eventdispatcher_.eventdispatcher.html" class="tsd-signature-type">EventDispatcher</a></h4>


        </li>
</ul>
    

</section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a name="offall" class="tsd-anchor"></a>
        <h3>off<wbr>All</h3>

        <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
        <li class="tsd-signature tsd-kind-icon">off<wbr>All<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_laya_events_eventdispatcher_.eventdispatcher.html" class="tsd-signature-type">EventDispatcher</a></li>
</ul>

<ul class="tsd-descriptions">
        <li class="tsd-description">
                <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_events_eventdispatcher_.eventdispatcher.html">EventDispatcher</a>.<a href="_laya_events_eventdispatcher_.eventdispatcher.html#offall">offAll</a></p>
        <ul>
                    <li>Defined in laya/events/EventDispatcher.ts:131</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>从 EventDispatcher 对象中删除指定事件类型的所有侦听器。</p>

                </div>
        </div>


    <h4 class="tsd-parameters-title">Parameters</h4>
    <ul class="tsd-parameters">
            <li>
                <h5><span class="tsd-flag ts-flagOptional">Optional</span> type: <span class="tsd-signature-type">string</span></h5>

                        <div class="tsd-comment tsd-typography">
                <p>（可选）事件类型，如果值为 null，则移除本对象所有类型的侦听器。</p>

        </div>

            </li>
    </ul>

    <h4 class="tsd-returns-title">Returns <a href="_laya_events_eventdispatcher_.eventdispatcher.html" class="tsd-signature-type">EventDispatcher</a></h4>

        <p>此 EventDispatcher 对象。</p>


        </li>
</ul>
    

</section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a name="offallcaller" class="tsd-anchor"></a>
        <h3>off<wbr>All<wbr>Caller</h3>

        <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
        <li class="tsd-signature tsd-kind-icon">off<wbr>All<wbr>Caller<span class="tsd-signature-symbol">(</span>caller<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_laya_events_eventdispatcher_.eventdispatcher.html" class="tsd-signature-type">EventDispatcher</a></li>
</ul>

<ul class="tsd-descriptions">
        <li class="tsd-description">
                <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_events_eventdispatcher_.eventdispatcher.html">EventDispatcher</a>.<a href="_laya_events_eventdispatcher_.eventdispatcher.html#offallcaller">offAllCaller</a></p>
        <ul>
                    <li>Defined in laya/events/EventDispatcher.ts:146</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>移除caller为target的所有事件监听</p>

                </div>
        </div>


    <h4 class="tsd-parameters-title">Parameters</h4>
    <ul class="tsd-parameters">
            <li>
                <h5>caller: <span class="tsd-signature-type">any</span></h5>

                        <div class="tsd-comment tsd-typography">
                <p>caller对象</p>

        </div>

            </li>
    </ul>

    <h4 class="tsd-returns-title">Returns <a href="_laya_events_eventdispatcher_.eventdispatcher.html" class="tsd-signature-type">EventDispatcher</a></h4>


        </li>
</ul>
    

</section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a name="on" class="tsd-anchor"></a>
        <h3>on</h3>

        <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
        <li class="tsd-signature tsd-kind-icon">on<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_laya_events_eventdispatcher_.eventdispatcher.html" class="tsd-signature-type">EventDispatcher</a></li>
        <li class="tsd-signature tsd-kind-icon">on<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, caller<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span>, args<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_laya_events_eventdispatcher_.eventdispatcher.html" class="tsd-signature-type">EventDispatcher</a></li>
</ul>

<ul class="tsd-descriptions">
        <li class="tsd-description">
                <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_events_eventdispatcher_.eventdispatcher.html">EventDispatcher</a>.<a href="_laya_events_eventdispatcher_.eventdispatcher.html#on">on</a></p>
        <ul>
                    <li>Defined in laya/events/EventDispatcher.ts:61</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>使用 EventDispatcher 对象注册指定类型的事件侦听器对象，以使侦听器能够接收事件通知。</p>

                </div>
        </div>


    <h4 class="tsd-parameters-title">Parameters</h4>
    <ul class="tsd-parameters">
            <li>
                <h5>type: <span class="tsd-signature-type">string</span></h5>

                        <div class="tsd-comment tsd-typography">
                <p>事件的类型。</p>

        </div>

            </li>
            <li>
                <h5>listener: <span class="tsd-signature-type">Function</span></h5>

                        <div class="tsd-comment tsd-typography">
                <p>事件侦听函数。</p>

        </div>

            </li>
    </ul>

    <h4 class="tsd-returns-title">Returns <a href="_laya_events_eventdispatcher_.eventdispatcher.html" class="tsd-signature-type">EventDispatcher</a></h4>

        <p>此 EventDispatcher 对象。</p>


        </li>
        <li class="tsd-description">
                <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_events_eventdispatcher_.eventdispatcher.html">EventDispatcher</a>.<a href="_laya_events_eventdispatcher_.eventdispatcher.html#on">on</a></p>
        <ul>
                    <li>Defined in laya/events/EventDispatcher.ts:62</li>
        </ul>
</aside>


    <h4 class="tsd-parameters-title">Parameters</h4>
    <ul class="tsd-parameters">
            <li>
                <h5>type: <span class="tsd-signature-type">string</span></h5>

                
            </li>
            <li>
                <h5>caller: <span class="tsd-signature-type">any</span></h5>

                
            </li>
            <li>
                <h5>listener: <span class="tsd-signature-type">Function</span></h5>

                
            </li>
            <li>
                <h5><span class="tsd-flag ts-flagOptional">Optional</span> args: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></h5>

                
            </li>
    </ul>

    <h4 class="tsd-returns-title">Returns <a href="_laya_events_eventdispatcher_.eventdispatcher.html" class="tsd-signature-type">EventDispatcher</a></h4>


        </li>
</ul>
    

</section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a name="once" class="tsd-anchor"></a>
        <h3>once</h3>

        <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
        <li class="tsd-signature tsd-kind-icon">once<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_laya_events_eventdispatcher_.eventdispatcher.html" class="tsd-signature-type">EventDispatcher</a></li>
        <li class="tsd-signature tsd-kind-icon">once<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, caller<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Function</span>, args<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_laya_events_eventdispatcher_.eventdispatcher.html" class="tsd-signature-type">EventDispatcher</a></li>
</ul>

<ul class="tsd-descriptions">
        <li class="tsd-description">
                <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_events_eventdispatcher_.eventdispatcher.html">EventDispatcher</a>.<a href="_laya_events_eventdispatcher_.eventdispatcher.html#once">once</a></p>
        <ul>
                    <li>Defined in laya/events/EventDispatcher.ts:87</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>使用 EventDispatcher 对象注册指定类型的事件侦听器对象，以使侦听器能够接收事件通知，此侦听事件响应一次后自动移除。</p>

                </div>
        </div>


    <h4 class="tsd-parameters-title">Parameters</h4>
    <ul class="tsd-parameters">
            <li>
                <h5>type: <span class="tsd-signature-type">string</span></h5>

                        <div class="tsd-comment tsd-typography">
                <p>事件的类型。</p>

        </div>

            </li>
            <li>
                <h5>listener: <span class="tsd-signature-type">Function</span></h5>

                        <div class="tsd-comment tsd-typography">
                <p>事件侦听函数。</p>

        </div>

            </li>
    </ul>

    <h4 class="tsd-returns-title">Returns <a href="_laya_events_eventdispatcher_.eventdispatcher.html" class="tsd-signature-type">EventDispatcher</a></h4>

        <p>此 EventDispatcher 对象。</p>


        </li>
        <li class="tsd-description">
                <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_events_eventdispatcher_.eventdispatcher.html">EventDispatcher</a>.<a href="_laya_events_eventdispatcher_.eventdispatcher.html#once">once</a></p>
        <ul>
                    <li>Defined in laya/events/EventDispatcher.ts:88</li>
        </ul>
</aside>


    <h4 class="tsd-parameters-title">Parameters</h4>
    <ul class="tsd-parameters">
            <li>
                <h5>type: <span class="tsd-signature-type">string</span></h5>

                
            </li>
            <li>
                <h5>caller: <span class="tsd-signature-type">any</span></h5>

                
            </li>
            <li>
                <h5>listener: <span class="tsd-signature-type">Function</span></h5>

                
            </li>
            <li>
                <h5><span class="tsd-flag ts-flagOptional">Optional</span> args: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></h5>

                
            </li>
    </ul>

    <h4 class="tsd-returns-title">Returns <a href="_laya_events_eventdispatcher_.eventdispatcher.html" class="tsd-signature-type">EventDispatcher</a></h4>


        </li>
</ul>
    

</section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static">
    <a name="destroyunusedresources" class="tsd-anchor"></a>
        <h3><span class="tsd-flag ts-flagStatic">Static</span> destroy<wbr>Unused<wbr>Resources</h3>

        <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static">
        <li class="tsd-signature tsd-kind-icon">destroy<wbr>Unused<wbr>Resources<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
</ul>

<ul class="tsd-descriptions">
        <li class="tsd-description">
                <aside class="tsd-sources">
        <p>Inherited from <a href="_laya_resource_resource_.resource.html">Resource</a>.<a href="_laya_resource_resource_.resource.html#destroyunusedresources">destroyUnusedResources</a></p>
        <ul>
                    <li>Defined in laya/resource/Resource.ts:59</li>
        </ul>
</aside>
        <div class="tsd-comment tsd-typography">
                <div class="lead">
                    <p>销毁当前没有被使用的资源,该函数会忽略lock=true的资源。</p>

                </div>
        </div>



    <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>


        </li>
</ul>
    

</section>
    </section>

        </div>
        <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
            <nav class="tsd-navigation primary">
                <ul>
                                    <li class="globals  ">
                <a href="../globals.html"><em>Globals</em></a>
            </li>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <li class="current tsd-kind-module">
                <a href="../modules/_laya_components_animatorcontroller2d_.html">&quot;laya/components/<wbr>Animator<wbr>Controller2<wbr>D&quot;</a>
            </li>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                </ul>
            </nav>

            <nav class="tsd-navigation secondary menu-sticky">
                <ul class="before-current">
                            </ul>
    <ul class="current">
<li class="current tsd-kind-class tsd-parent-kind-module">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html" class="tsd-kind-icon">Animator<wbr>Controller2D</a>
        <ul>
                <li class=" tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#constructor" class="tsd-kind-icon">constructor</a>
</li>
                <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#destoryedimmediately" class="tsd-kind-icon">destoryed<wbr>Immediately</a>
</li>
                <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#lock" class="tsd-kind-icon">lock</a>
</li>
                <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#name" class="tsd-kind-icon">name</a>
</li>
                <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#url" class="tsd-kind-icon">url</a>
</li>
                <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#uuid" class="tsd-kind-icon">uuid</a>
</li>
                <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-static">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#debug" class="tsd-kind-icon">DEBUG</a>
</li>
                <li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#cpumemory" class="tsd-kind-icon">cpu<wbr>Memory</a>
</li>
                <li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#destroyed" class="tsd-kind-icon">destroyed</a>
</li>
                <li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#gpumemory" class="tsd-kind-icon">gpu<wbr>Memory</a>
</li>
                <li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#id" class="tsd-kind-icon">id</a>
</li>
                <li class=" tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#obsolute" class="tsd-kind-icon">obsolute</a>
</li>
                <li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#referencecount" class="tsd-kind-icon">reference<wbr>Count</a>
</li>
                <li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited tsd-is-static">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#cpumemory-1" class="tsd-kind-icon">cpu<wbr>Memory</a>
</li>
                <li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited tsd-is-static">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#gpumemory-1" class="tsd-kind-icon">gpu<wbr>Memory</a>
</li>
                <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#_clearreference" class="tsd-kind-icon">_clear<wbr>Reference</a>
</li>
                <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#destroy" class="tsd-kind-icon">destroy</a>
</li>
                <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#event" class="tsd-kind-icon">event</a>
</li>
                <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#haslistener" class="tsd-kind-icon">has<wbr>Listener</a>
</li>
                <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#iscreatefromurl" class="tsd-kind-icon">is<wbr>Create<wbr>FromURL</a>
</li>
                <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#off" class="tsd-kind-icon">off</a>
</li>
                <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#offall" class="tsd-kind-icon">off<wbr>All</a>
</li>
                <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#offallcaller" class="tsd-kind-icon">off<wbr>All<wbr>Caller</a>
</li>
                <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#on" class="tsd-kind-icon">on</a>
</li>
                <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#once" class="tsd-kind-icon">once</a>
</li>
                <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-static">
    <a href="_laya_components_animatorcontroller2d_.animatorcontroller2d.html#destroyunusedresources" class="tsd-kind-icon">destroy<wbr>Unused<wbr>Resources</a>
</li>
        </ul>
</li>
    </ul>
    <ul class="after-current">
                </ul>
            </nav>
        </div>
    </div>
</div>


<footer>
    <div class="container">
        <h2>Legend</h2>
        <div class="tsd-legend-group">
                <ul class="tsd-legend">
                        <li class="tsd-kind-object-literal"><span class="tsd-kind-icon">Object literal</span></li>
                        <li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
                        <li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
                        <li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li>
                </ul>
                <ul class="tsd-legend">
                        <li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
                        <li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
                        <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
                </ul>
                <ul class="tsd-legend">
                        <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
                        <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
                        <li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li>
                </ul>
                <ul class="tsd-legend">
                        <li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</span></li>
                </ul>
                <ul class="tsd-legend">
                        <li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
                </ul>
        </div>
    </div>
</footer>


<div class="overlay"></div>
<script src="../assets/js/main.js"></script>


</body>
</html>
